package com.victor.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 我的购书卷表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "mybybookcoupon")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Mybybookcoupon implements Serializable{

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;
	
	@Column(name = "userid", length = 50)
	private String userid;// 用户id
	
	@Column(name = "bybookcouponid", length = 50)
	private String bybookcouponid;// 购书卷表id
	
	@Column(name = "gaintime", length = 50)
	private String gaintime;// 获取购书卷时间
	
	@Column(name = "flag", length = 50)
	private String flag;// 我的购书卷状态 1.可使用 2.已使用 3.已过期
	
	@Column(name = "uuid", length = 50)
	private String uuid;// 随机数

	@Transient
	private Bybookcoupon bybookcoupon;
}
